package com.ayz.gateway.center.domain.service;


import com.ayz.gateway.center.application.IGatewayServiceService;
import com.ayz.gateway.center.domain.repository.IGatewayServiceRepository;
import com.ayz.gateway.common.constants.GatewayServiceData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName GatewayServiceServiceImpl
 * @Description TODO: 网关服务的服务实现类
 * @Author 快乐的星球
 * @Date 2023/5/30 17:40
 * @Version 1.0
 **/
@Service
public class GatewayServiceServiceImpl implements IGatewayServiceService {
    @Autowired
    private IGatewayServiceRepository gatewayServiceRepository;
    @Override
    public List<GatewayServiceData> gatewayServiceDiscover(String gatewayGroup) {
        return gatewayServiceRepository.getGatewayServiceListByGroup(gatewayGroup);
    }
}
